package com.satanlh.springboot.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @Packege：com.satanlh.springboot.controller
 * @Author satanlh
 * @Date 2021/3/4 16:36
 * @Version 1.0
 */
public class IndexController {
    @Value("${firstname}")
    private String firstname;
    @Value("${lastname}")
    private String lastname;

    @RequestMapping(value = "say")
    public @ResponseBody String say(){
        return "hello";
    }
}
